package Demo;

import java.util.HashMap;
import java.util.Map;

/**
 * @author げっしょく
 * @date 2021/7/28
 */
public class Test3 {
    public static void main(String[] args) {
        Map<String, String> m = new HashMap<>();
        m.put("zhangsan", "father");
        m.put("lisi", "monther");
        m.put("wangwu", "birther");
       /* System.out.println(m.put("zouqingquan", "didi"));
        System.out.println(m+"......."+m.size());
        System.out.println(m.remove("zhangsan"));
        System.out.println(m.containsKey("lisi"));
        System.out.println(m.containsKey("zhangsan"));
        System.out.println(m.containsValue("monther"));
        System.out.println(m.isEmpty());
        System.out.println(m+"..." + m.size());
        m.clear();
        System.out.println(m);*/
        for (String s : m.keySet()) {
            System.out.println("键:" + s +"\t 值:"+m.get(s));
        }
    }
}
